package de.idgard.android.addon.ui.services.impl;

import de.idgard.android.addon.ui.services.TransparencyStateService;

/**
 * 
 * @author ckaratza
 * 
 */

class TransparencyStateServiceImpl implements TransparencyStateService {

	private TransparencyStateService.TransparencyState state = TransparencyState.TRANSPARENT.NORMAL;

	@Override
	public void configureTransparencyState(
			TransparencyStateService.TransparencyState state) {
		this.state = state;
	}

	@Override
	public TransparencyStateService.TransparencyState queryTransparencyState() {
		return state;
	}

	@Override
	public boolean isIncognito() {
		return state.equals(TransparencyState.INCOGNITO);
	}

	@Override
	public boolean isTransparent() {
		return state.equals(TransparencyState.TRANSPARENT);
	}

}
